xen: Update pci_uart_config to save the BAR1 contents if com2 is used
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 14 Jul 2011 08:31:12 +0000 (09:31 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 14 Jul 2011 08:31:12 +0000 (09:31 +0100)
commite2da9f68453dd5c8f4547767c6ac176d73285b99
treed150f81df338ad2599f97d9e7bfa894ad0127db9
parentac17df064feaa2e0a5c2feb01d9021d60405778f
xen: Update pci_uart_config to save the BAR1 contents if com2 is used

Jan Beulich pointed out that the pci_uart_config can be called for
com2 and we should probe the second BAR instead of the first one.

This patch will probe the BAR0 if it is com1, and BAR1 if its com2.
It also cleans up some of the whitespace problems and changes the
name of the parameter and function from 'magic' to 'pci'.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
xen/drivers/char/ns16550.c